package com.share.constant;

public interface OAuthConstant {
    // 微信
    String WX_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code";
    String WX_USER_INFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s&lang=zh_CN";
    String WX_CHECK = "https://open.weixin.qq.com/connect/oauth2/" +
                    "authorize?appid=%s" +
                    "&redirect_uri=%s" +
                    "&response_type=%s" +
                    "&scope=%s" +
                    "&state=STATE" +
                    "&forcePopup=true" +
                    "#wechat_redirect";
    // Gitee
    String GITEE_TOKEN_URL = "https://gitee.com/oauth/token?grant_type=authorization_code&code=%s&client_id=%s&redirect_uri=%s&client_secret=%s";
    String GITEE_USER_INFO_URL = "https://gitee.com/api/v5/user?access_token=%s";

    // QQ
    String QQ_AUTHORIZATION_URL = "https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=%s&redirect_uri=%s&state=%s";
    String QQ_TOKEN_URL = "https://graph.qq.com/oauth2.0/token?grant_type=authorization_code&client_id=%s&client_secret=%s&code=%s&redirect_uri=%s";
    String QQ_USER_INFO_URL = "https://graph.qq.com/user/get_user_info?access_token=%s&oauth_consumer_key=%s&openid=%s";
}
